package com.aaa.ssm.service.impl;

import com.aaa.ssm.entity.Grade;
import com.aaa.ssm.mapper.GradeMapper;
import com.aaa.ssm.service.GradeService;
import com.aaa.ssm.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author AUSU
 * @version 1.0
 * 创建时间：2025/3/23 20:05
 */
@Service
public class GradeServiceImpl implements GradeService {

    @Autowired
    private GradeMapper gradeMapper;

    @Override
    public AjaxResult listAllGrade() {

        List<Grade> grades = gradeMapper.listAllGrade();

        return AjaxResult.success(grades);
    }
}
